<?php echo $this->Form->create('ModelTr'); ?>
<?php echo $this->Form->hidden('id'); ?>
<table style = 'width:100%'>
	<tr>
		<td>
			<?php echo $this->Form->input('table_id',array('type'=>'text','readonly')); ?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $this->Form->input('direct',array('options'=>array(1=>'横向',0=>'纵向'),'label'=>'方向','default'=>1)); ?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $this->Form->input('x',array('label'=>'X(横坐标)')); ?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $this->Form->input('y',array('label'=>'Y(纵坐标)')); ?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $this->Form->input('z',array('label'=>'Z(长度)')); ?>
		</td>
	</tr>
	<tr>
		<td>
			<?php echo $this->Form->input('name',array('label'=>'名称')); ?>
			<?php echo $this->Form->hidden('sort',array('default'=>'100')); ?>
			<?php echo $this->Form->hidden('enable',array('default'=>'1')); ?>
		</td>
	</tr>
	<tr>
		<td>
    		<a href = 'javascript:;' onclick = "m.submit('#ModelTrAdminEditTrForm')">submit</a>
		</td>
	</tr>
</table>
<?php echo $this->Form->end(); ?>
